﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DefaultPage.master" AutoEventWireup="true" CodeFile="userdetails.aspx.cs" Inherits="users_userdetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHeader" Runat="Server">

    <script language="javascript" src="http://localhost:2011/didong/js/jquery-1.3.2.min.js" type="text/javascript"></script>

<script language="javascript" type="text/javascript" src="http://localhost:2011/didong/js/jquery.easing.js"></script>

<script language="javascript" type="text/javascript" src="http://localhost:2011/didong/js/script.js"></script>

<script language="javascript" type="text/javascript" src="http://localhost:2011/didong/js/jquery.leanModal.min.js"></script>

<script   language="javascript" src="http://localhost:2011/didong/js/plugin.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceSlide" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceLeft" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceMain" Runat="Server">

    <div class=" groupheader">Thông tin cá nhân</div>
<div class="show">
    <div class="lshow">
        <asp:HiddenField ID="hdid" runat="server" />
        Họ tên:
    </div>
    <div class="rshow">
        <asp:Literal ID="cname" runat="server"></asp:Literal>
    </div>
</div>
<div class="show">
    <div class="lshow">
        Địa chỉ:
    </div>
    <div class="rshow">
        <asp:Literal ID="caddress" runat="server"></asp:Literal>
    </div>
</div>
<div class="show">
    <div class="lshow">
        Điện thoại:
    </div>
    <div class="rshow">
        <asp:Literal ID="ctel" runat="server"></asp:Literal>
    </div>
</div>
<div class="show">
    <div class="lshow">
        Email:
    </div>
    <div class="rshow">
        <asp:Literal ID="cemail" runat="server"></asp:Literal>
    </div>
</div>
<div class="show">
    <div class="lshow">
        Thành phố:
    </div>
    <div class="rshow">
        <asp:Literal ID="ccity" runat="server"></asp:Literal>
    </div>
</div>
<div class="show">
    <asp:Button ID="btncapnhat" UseSubmitBehavior="false" runat="server" 
        Text="Sửa thông tin cá nhân" BackColor="#6600FF" BorderColor="#CC00CC" 
        BorderStyle="Dotted" Font-Bold="True" ForeColor="White" 
        PostBackUrl="~/users/capnhatthongtin.html" />
</div>
<div  style=" border-bottom: solid 1px red; width: 90%; clear:both; height: 1px; margin: 10px;"></div>
<div style=" font-size: 14px; color:#777; font-weight: bold; margin: 20px; clear:both">Các Đơn đặt hàng gần đây</div>
<div class="boxorder" style=" width:100%; margin:10px; clear:both;">
    
         <asp:ListView ID="Lproducts" runat="server" 
                        onitemdeleting="Lproducts_ItemDeleting" 
                        onitemupdating="Lproducts_ItemUpdating">
                    
                    <LayoutTemplate>
                     <div class ="pcartborder">
                       
                        <div class ="pcartrow header" style ="font-weight: bold;">
                            <div class ="pcartitemno">STT</div>
                            <div class ="prcol">Mã đơn hàng</div>
                            <div class ="prcol">Mã Thành viên</div>
                            <div class = "prcol">Ngày Đặt hàng</div>
                            <div class = "prcol">Thành Tiền</div>
                            <div class="prcol">Trạng thái</div>
                        </div> 
                        
                                <asp:PlaceHolder runat="server" ID="itemPlaceholder" />
                        
                                <div class="pager">
                <asp:Literal ID="PageInfo" runat="server" >Trang: </asp:Literal>
              <asp:DataPager ID="pager" runat="server" PagedControlID="Lproducts" PageSize="10">
                    <Fields>
                        <asp:NumericPagerField CurrentPageLabelCssClass="pager_current" ButtonCount="3" RenderNonBreakingSpacesBetweenControls="false"
                            NextPageText=".." PreviousPageText=".." />
                    </Fields>
                </asp:DataPager>
            </div>
                    
                    </div>
                    </LayoutTemplate>
                    <EmptyItemTemplate>
                            <h4>Thành viên này chưa có đơn đặt hàng nào</h4>
                    </EmptyItemTemplate>
                    <EmptyDataTemplate> <h4>Thành viên này chưa có đơn đặt hàng nào</h4></EmptyDataTemplate>
                    <ItemTemplate>
                        <div class="pcartrow">
                            <div class ="pcartitemno">
                                   <%# Container.DataItemIndex + 1 %>
                                </div>
                              
                                <asp:HiddenField ID="hdid" runat="server" Visible = "false"  Value = '<%#Eval("Order_Id")%>' />
                                <div class ="prcol">
                                   <%#Eval("Order_Id")%>
                                </div>
                                <div class ="prcol">
                                   <%#Eval("Members_Id")%>
                                </div>
                                <div class = "prcol">
                                      <%#Eval("Order_Date","{0:d}")%>
                                </div>
                                 <div class = "prcol">
                                      <%#Eval("Order_Total","{0:0,0}")+" "%>vnđ
                                </div>
                                 <div class = "prcol">
                                    <asp:CheckBox ID="IsActive" runat="server" Enabled="false"  Checked='<%# Eval("IsActive") %>' />
                                </div>
                                 <div class="pcardsubmit">
                                     <a href='<%# "http://localhost:2011/didong/admin/order/orderdetails.aspx?Id=" + Eval("Order_Id")%>' title= '<%#"Sửa chi tiết [ " + Eval("Order_Id") + " ]"%>'> <img src ="http://localhost:2011/didong/images/design/acp_edit.gif" alt = "Sửa" style ="width: 12px ;height: 12px ;border: none; padding-top: 2px;" /> </a>
                                </div>
                                  
                                
                        
                        </div>
                    </ItemTemplate>
                    </asp:ListView>
</div>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ContentPlaceFooter" Runat="Server">
</asp:Content>

